home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / file_mgt / netcpy50 / netcopy.doc < prev    next >
Encoding:
Text File  |  1995-04-05  |  3.4 KB  |  88 lines

  1.  
  2. CP - Unix-like file copy, (v5.0, 4-5-95)
  3. Copyright (C) 1987, 1995 Samuel H. Smith; All rights reserved.
  4.  
  5. 'CP' is a small file copy utility.   It works much like the DOS copy
  6. command and is patterned after the Unix facility by the same name.
  7.  
  8. Usage:
  9.   cp [-U] [-R] [-2] SOURCE DEST
  10.   cp SOURCE1 SOURCE2 ... SOURCEn DEST
  11.   cp @LISTFILE DEST
  12.   cp SOURCE
  13.  
  14.   -U updates destination only if source is newer
  15.         This option causes CP to replace older files, but to skip
  16.         copying when the destination is the same as, or newer than, the
  17.         source file.
  18.  
  19.   -E copy only if destination exists
  20.         This option allows you to replace existing files, but not add
  21.         files that are not already present in the destination directory.
  22.  
  23.   -R allows read-only destination to be replaced
  24.         This option allows you to replace a file that is flagged as
  25.         read-only.  The new file will also be read-only.  This is useful
  26.         when updating EXE files in a directory that is entirely read-
  27.         only (such as a common directory on a network).
  28.  
  29.   -F skip files that cannot be opened
  30.         This option causes the program to internally trap system 'fatal
  31.         errors' rather than passing control to the current 'retry,
  32.         abort, fail' error handler.
  33.  
  34.   -2 reduces buffering to 2k blocks
  35.         This option reduces the I/O buffering from the normal 32k
  36.         buffers to a small 2k buffer.  You may find this option useful
  37.         when copying to or from a floppy disk under a network or
  38.         timeshare system, since smaller blocks will reduce system
  39.         loading.
  40.  
  41. Examples:
  42.   cp a:*.arc
  43.         ;copies all .arc files into current dir
  44.  
  45.   cp /pcb/main/*.* /pcb/gen/*.* d:/backup
  46.         ;copies files from two directories into backup directory
  47.  
  48.   cp -r program.exe c:\library
  49.         ;copies file program.exe to library directory, allowing the
  50.         ;library copy to be read-only.
  51.  
  52.   cp -u *.* c:\backup
  53.         ;copies all files to backup directory.  skips copying files that
  54.         ;are already present in backup area, but copies missing or newer
  55.         ;files.
  56.  
  57.   cp -r -u *.exe c:\bin
  58.         ;updates all .exe files in c:\bin, also allowing destinations to
  59.         ;be replaced if flagged read-only
  60.  
  61.   cp @/tmp/files.lst /backup
  62.         ;reads /tmp/files.lst and treats each line as a filespec to be
  63.         ;copied to /backup
  64.  
  65.  
  66. Cp works just like the DOS copy command, with the following exceptions:
  67.   - Both / and \ are allowed as directory delimiters
  68.   - Multiple source files may be specified
  69.   - Network file sharing is supported
  70.   - Files cannot be renamed during a copy (I.E. DEST must be a directory)
  71.  
  72.  
  73. No time to write documentation!
  74. Maybe a longer doc file in the next release.
  75.  
  76. DISCLAIMER: IN NO EVENT WILL I BE LIABLE TO YOU FOR ANY DAMAGES,
  77. INCLUDING ANY LOST PROFITS, LOST SAVINGS OR OTHER INCIDENTAL OR
  78. CONSEQUENTIAL DAMAGES ARISING OUT OF YOUR USE OR INABILITY TO USE THE
  79. PROGRAM, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  80.  
  81.                                                   Samuel H. Smith
  82.                                                   P.O. Box 4808
  83.                                                   Los Angeles, CA 91412-4808
  84.                                                   (213) 851-9969 (voice)
  85.                                                   (213) 851-2127 (bbs)
  86.                                                   Email: shsmith@primenet.com
  87.  
  88.